home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 3: Developer Tools
/
Linux Cubed Series 3 - Developer Tools.iso
/
devel
/
make
/
icmake-6.000
/
icmake-6
/
icmake
/
comp
/
lcast.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1994-02-08
|
513 b
|
25 lines
/*
L C A S T . C
*/
#include "iccomp.h"
ESTRUC_ *lcast(e)
ESTRUC_
*e;
{
if (test_type(e, e_int)) /* (int)list not ok */
{
semantic(illegal_cast);
discard(e);
set_type(e, e_list | e_var);
}
else if (test_type(e, e_str)) /* (string)int ok */
{
etoc(e); /* convert to code */
gencode(e, op_atol);
set_type(e, e_code | e_list);
}
return (e);
}